import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    collapsed:false,//控制左侧栏显示隐藏
  },
  mutations: {
    changeCol (state) {
      state.collapsed=!state.collapsed
    }
  }
})

export default store